package com.leicx.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leicx.guli.common.utils.PageUtils;
import com.leicx.guli.product.entity.AttrAttrgroupRelationEntity;
import com.leicx.guli.product.vo.attr.AttrGroupRelationVo;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author lcx
 * @email at_xiong@163.com
 * @date 2021-03-25 11:13:58
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AttrAttrgroupRelationEntity getByAttrId(Long attrId);

    List<AttrAttrgroupRelationEntity> listByAttrGroupId(Long attrGroupId);

    List<AttrAttrgroupRelationEntity> listByAttrGroupIds(List<Long> attrGroupIds);

    void attrRelationDelete(AttrGroupRelationVo[] attrGroupRelations);

    void attrRelation(AttrGroupRelationVo[] attrGroupRelations);
}

